﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UIElements.ViewModel
{
    public class PatternLocationViewModel : ViewModelBase
    {
        #region Constructors

        public PatternLocationViewModel()
            : base()
        {
        }

        #endregion

        #region Properties

        private int locationID;
        public int LocationID
        {
            get { return locationID; }
            set
            {
                locationID = value;
                OnPropertyChanged("LocationID");
            }
        }

        private string locationName;
        public string LocationName
        {
            get { return locationName; }
            set 
            { 
                locationName = value;
                OnPropertyChanged("LocationName");
            }
        }

        private bool isSelected;
        public bool IsSelected
        {
            get { return isSelected; }
            set
            {
                if (value != isSelected)
                {
                    isSelected = value;
                    this.OnPropertyChanged("IsSelected");
                }
            }
        }

        private string locationPath;
        public string LocationPath
        {
            get { return locationPath; }
            set
            {
                locationPath = value;
                OnPropertyChanged("LocationPath");
            }
        }

        private bool isInEditMode;
        public bool IsInEditMode
        {
            get { return isInEditMode; }
            set
            {
                isInEditMode = value;
                OnPropertyChanged("IsInEditMode");
            }
        }

        #endregion
    }
}
